package main.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.stereotype.Component;

@Component
//@Cache(usage = CacheConcurrencyStrategy.READ_WRITE) 
@Entity(name="channel")
public class ChannelVO extends BaseVO {
	/**
	 * 2016-10-24-pm
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "channel_ID", unique = true, nullable = true)
	private Integer channelID;
	@NotEmpty
	@Column(name="channel_name", unique=true, nullable = true, length=64)
	private String channelName;
	@Column(name="mdl_ID", nullable = true)
	private Integer moduleID;
	@NotEmpty
	@Column(name="channel_desc", nullable=true)
	private String channelDesc;
	
	public Integer getChannelID() {
		return channelID;
	}
	public void setChannelID(Integer channelID) {
		this.channelID = channelID;
	}
	public String getChannelName() {
		return channelName;
	}
	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}
	public Integer getModuleID() {
		return moduleID;
	}
	public void setModuleID(Integer moduleID) {
		this.moduleID = moduleID;
	}
	public String getChannelDesc() {
		return channelDesc;
	}
	public void setChannelDesc(String channelDesc) {
		this.channelDesc = channelDesc;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
}
